package com.lill.org.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lill.common.component.util.IdUtil;
import com.lill.org.dao.IPositionDao;
import com.lill.org.model.PositionModel;
import com.lill.org.service.IPositionService;

/**
 * 职位管理Service实现类
 *
 * @author lill
 * @date 2019-04-24 15:25:16
 */
@Service("com.lill.org.service.impl.PositionServiceImpl")
public class PositionServiceImpl implements IPositionService {
    @Autowired
    private IPositionDao orgPositionDao;

    public PositionModel queryObject(String id) {
        return orgPositionDao.queryObject(id);
    }

    public List<PositionModel> queryList(Map<String, Object> map) {
        return orgPositionDao.queryList(map);
    }

    public int queryTotal(Map<String, Object> map) {
        return orgPositionDao.queryTotal(map);
    }

    public int save(PositionModel orgPosition) {
        orgPosition.setId(IdUtil.createIdbyUUID());
        return orgPositionDao.save(orgPosition);
    }

    public int update(PositionModel orgPosition) {
        return orgPositionDao.update(orgPosition);
    }

    public int delete(String id) {
        return orgPositionDao.delete(id);
    }

    public int deleteBatch(String[] ids) {
        return orgPositionDao.deleteBatch(ids);
    }
    
	public int deleteLogicByMap(Map<String, Object> map) {
		return orgPositionDao.deleteLogicByMap(map);
	}
}
